<script>
	export default {
		onLaunch: function() {
			const userID = uni.getStorageSync('userID') || ''
			const userType = String(uni.getStorageSync('user_type'))  || ''
			
			if(userID !== '' && userType !== ''){
				let obj = {
					"0": '/pages/driver/driver',
					"1": '/pages/olier/olier'
				}
				uni.reLaunch({
					url: obj[userType]
				})
			}
		},
		onShow: function() {
		},
		onHide: function() {
		}
	}
</script>

<style lang="scss">
	// @import "./node_modules/vk-uview-ui/index.scss";
	@import "vk-uview-ui/index.scss";
	/*每个页面公共css */
	page{
		background: #f5f5f5;
	}
</style>
